package com.engineering.elink.recruitdao;

import java.util.List;

import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import com.engineering.elink.domain.recruit.TargetCompany;

public interface TargetCompanyMapper {
    int deleteByPrimaryKey(Integer tcId);

    int insert(TargetCompany record);

    int insertSelective(TargetCompany record);

    TargetCompany selectByPrimaryKey(Integer tcId);

    int updateByPrimaryKeySelective(TargetCompany record);

    int updateByPrimaryKey(TargetCompany record);
    
    TargetCompany selectMyTargetJob(@Param("jobId")String jobId,@Param("userId")String userId);
    
    @Select(" select tc_id from target_company where user_id=#{userId} and type=0 ")
    List<Integer> selectMyTargetJobList(String userId);
    
    int updateBatchByType(List<Integer> tcIdList);
    
    List<Integer> selectTCByJobId(@Param("jobIds")String[] jobIds,@Param("type")Integer type);
     
    int deleteBatchByTcId(List<Integer> tcIdList);
    
}